using FluentNHibernate.Cfg;
using Munim.Fame.DataAccess.NHibernate.Configurations.Interfaces;

namespace Munim.Fame.DataAccess.NHibernate.Configurations
{
    public class WithCreateDatabaseConfiguration : ISessionConfiguration
    {
        public FluentConfiguration GetConfiguration()
        {
            var fluentConfiguration = NHibernateHelper.GetConfiguration();

            return fluentConfiguration.ExposeConfiguration(NHibernateHelper.CreateDb);
        }
    }
}